<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/


//后台顶级分类管理 
Route::controller('/admin/cate','Admin\CateController');
//后台品牌管理
Route::controller('/admin/brand','Admin\BrandController');
//后台功效管理
Route::controller('/admin/effect','Admin\EffectController');
//极速免税店
Route::controller('/home/act','Home\ActController');
//后台美妆商城分类管理
Route::controller('/admin/beauty','Admin\BeautyController');
//美妆商城
Route::controller('/goodssort','Home\GoodssortController');
//美妆商城商品列表
Route::controller('/goodslist','Home\GoodslistController');

//后台轮播
Route::controller('/admin/carousel','Admin\CarouselController');
//秒杀管理
Route::controller('/admin/seckill','Admin\SeckillController');

//秒杀商品分类列表
Route::controller('/admin/seckimg','Admin\SeckimgController');
//秒杀商品管理
Route::controller('/admin/seckillglobal','Admin\SeckillglobalController');
//商品详情页
Route::controller('/globalinfo','Home\GlobalinfoController');



//==========================  位云涛  ==============================

// Route::group(['middleware'=>'adminlogin'],function(){
	//后台
	Route::get('/admin','Admin\AdminController@index');
	//用户管理
	Route::controller('/admin/user','Admin\UserController');
	// });

//后台登录
Route::controller('/admin/login','Admin\LoginController');

//后台验证码
Route::get('/vcode','Admin\LoginController@vcode');

//后台退出
Route::get('/out','Admin\LoginController@out');
//前台首页
Route::get('/',function(){
	return view('home.home.index');
});
//前台注册
Route::get('/register','Home\RegisterController@register');
//前台执行注册
Route::controller('/home/register','Home\RegisterController');
// Route::post('/home/doregister','Home\RegisterController@doregister');
//前台登录
Route::get('/login','Home\LoginController@login');
//执行前台普通登录
// Route::post('/login','Home\LoginCoutroller@dologin');

//=======================================================

// 首页
Route::controller('/','Home\IndexController');

